<!DOCTYPE html>
<html lang="cn" class=" ">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title></title>

    <meta name="msapplication-TileColor" content="#ffffff">
    <meta name="theme-color" content="#ffffff">

    <link rel="preload" href="https://res.wx.qq.com/wxdoc/dist/assets/css/0.styles.a2552c11.css" as="style">
    <link rel="stylesheet" href="https://res.wx.qq.com/wxdoc/dist/assets/css/0.styles.a2552c11.css">
    <meta name="description" content="开放平台文档">
</head>
<body class="">
<div id="app">
    <div class="theme-container">
        <div class="theme-container">

            <div class="main-container" style="margin-top: 0px;">
                <div class="main-contontaier__bd" style="min-height: 505px;">
                    <div class="page__wrp">
                        <main class="page">
                            <div class="page-inner" style="min-height: 505px;">
                                <div id="docContent">
                                    <div class="content custom"><h1 id="logistics-addOrder"><a
                                                    href="#logistics-addOrder"
                                                    aria-hidden="true" class="header-anchor"></a> ${info.title}</h1>
                                        <blockquote><p>本接口应在服务器端调用，详细说明参见服务端API。</p></blockquote>
                                        <#--  <p>接口编码：${info.apiCode}</p>-->
                                        <p>接口版本：${info.version}</p>
                                        <p>功能描述：${info.description}</p>
                                        <p>调用方式：</p>
                                        <ul>
                                            <li><a>HTTP 调用</a></li>
                                        </ul>
                                        <p><a id="method-http"></a></p>
                                        <h2 id="HTTP-调用"><a href="#" aria-hidden="true" class="header-anchor"></a>
                                            HTTP调用</h2>
                                        <h3 id="请求地址"></h3>
                                        <div class="language- extra-class">
                                            <#assign bodyData=[]>
                                            <#list paths?keys as urlKey>
                                                <#list paths[urlKey]?keys as method>
                                                    <#assign parameters=''>
                                                    <#assign bodyData=paths[urlKey][method]>
                                                    <#list paths[urlKey][method].parameters! as pa>
                                                        <#if pa.in=='query'>
                                                            <#assign parameters=parameters+'&'+pa.name+'='+pa.name?upper_case>
                                                        </#if>
                                                    </#list>
                                                    <#if parameters!=''>
                                                        <#assign parameters='?'+parameters?substring(1)>
                                                    </#if>
                                                    <p>Http请求方式：${method}</p>
                                                    <p>URI地址：</p>
                                                    <#list servers! as server>
                                                        <pre class="language-text"><code>${server.url+urlKey+parameters} - ${server.description}</code></pre>
                                                    </#list>
                                                </#list>
                                            </#list>
                                        </div>

                                        <#assign schemasKey=''>
                                        <h2 id="请求参数"><a
                                                    href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/express/by-business/logistics.addOrder.html#%E8%AF%B7%E6%B1%82%E5%8F%82%E6%95%B0"
                                                    aria-hidden="true" class="header-anchor"></a> 请求参数</h2>
                                        <div class="table-wrp">
                                            <table  border="1px" width="60%" cellspacing="0" >
                                                <thead>
                                                <tr>
                                                    <th width="20%">属性</th>
                                                    <th width="20%">类型</th>
                                                    <th width="20%">默认值</th>
                                                    <th width="20%">必填</th>
                                                    <th width="20%">说明</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <#list bodyData.parameters! as pa>
                                                    <tr>
                                                        <td >${pa.name}</td>
                                                        <td align="center">${pa.schema.type}</td>
                                                        <td align="center"></td>
                                                        <td align="center">${pa.required?string("是","否")}</td>
                                                        <td >${pa.description}</td>
                                                    </tr>
                                                </#list>

                                                <#if bodyData.requestBody??>
                                                    <#assign requestBody=bodyData.requestBody>
                                                    <#assign josnBodyKey=requestBody.content['application/json'].schema.ref?substring(21)>
                                                    <#assign properties=components.schemas[josnBodyKey].properties>
                                                    <#assign reqRequired=components.schemas[josnBodyKey].required![""]>
                                                    <#list properties?keys as pro>
                                                        <tr>
                                                            <td >${pro}</td>
                                                            <#if properties[pro].type??>
                                                                <td align="center">${properties[pro].type?cap_first}</td>
                                                            <#else>
                                                                <#assign schemasKey=schemasKey+pro+','>
                                                                <td align="center">Object</td>
                                                            </#if>
                                                            <td align="center"></td>
                                                            <#if properties[pro].type??>
                                                                <#list reqRequired! as req>
                                                                    <#if req==pro>
                                                                        <td align="center">true</td>
                                                                    </#if>
                                                                </#list>
                                                            <#else>
                                                                <td align="center">true</td>
                                                            </#if>
                                                            <#if properties[pro].type??>
                                                                <td >${properties[pro].description}</td>
                                                            <#else>
                                                                <td ></td>
                                                            </#if>
                                                        </tr>
                                                    </#list>
                                                </#if>
                                                </tbody>
                                            </table>
                                        </div>
                                        <#list 1..20 as i>
                                            <#list components.schemas?keys as schemas>
                                                <#if (schemasKey?replace("1",""))?index_of(schemas?replace("1","")+',') lte -1 >
                                                <#else>
                                                    <p><strong>请求对象 ${schemas?replace("1","")} 的结构</strong></p>
                                                    <#assign properties=components.schemas[schemas].properties>
                                                    <#assign reqRequired=components.schemas[schemas].required![""]>
                                                    <#assign schemasKey=(schemasKey?replace("1",""))?replace(schemas?replace("1",""),"")?replace(",,",",")>
                                                    <div class="table-wrp">
                                                        <table  border="1px" width="60%" cellspacing="0">
                                                            <thead>
                                                            <tr>
                                                                <th width="20%">属性</th>
                                                                <th width="20%">类型</th>
                                                                <th width="20%">默认值</th>
                                                                <th width="20%">必填</th>
                                                                <th width="20%">说明</th>
                                                            </tr>
                                                            </thead>
                                                            <tbody>
                                                            <#list properties?keys as pro>
                                                                <tr>
                                                                    <td >${pro}</td>
                                                                    <#if properties[pro].type??>
                                                                        <td align="center">${properties[pro].type?cap_first}</td>
                                                                    <#else>
                                                                        <#assign schemasKey=schemasKey+pro+','>
                                                                        <td align="center">Object</td>
                                                                    </#if>

                                                                    <td align="center"></td>
                                                                    <#if properties[pro].type??>
                                                                        <#list reqRequired! as req>
                                                                            <#if req==pro>
                                                                                <td align="center">true</td>
                                                                            </#if>
                                                                        </#list>
                                                                    <#else>
                                                                        <td align="center">true</td>
                                                                    </#if>
                                                                    <#if properties[pro].type??>
                                                                        <td >${properties[pro].description}</td>
                                                                    <#else>
                                                                        <td ></td>
                                                                    </#if>
                                                                </tr>
                                                            </#list>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                </#if>
                                                <#assign schemasKey=schemasKey?replace(schemas+',','')>
                                            </#list>
                                            <#if schemasKey='' >
                                                <#break>
                                            </#if>
                                        </#list>
                                        <#if bodyData.responses??>
                                            <#assign responses=bodyData.responses>
                                            <#list responses?keys as respKey>
                                                <#if respKey=='200'>
                                                    <h2 id="返回值"><a href="#" aria-hidden="true"
                                                                    class="header-anchor"></a>返回值(code:${respKey}) </h2>
                                                    <div class="table-wrp">
                                                        <table  border="1px" width="60%" cellspacing="0">
                                                            <thead>
                                                            <tr>
                                                                <th width="20%">属性</th>
                                                                <th width="20%">类型</th>
                                                                <th width="20%">默认值</th>
                                                                <th width="20%">必填</th>
                                                                <th width="20%">说明</th>
                                                            </tr>
                                                            </thead>
                                                            <tbody>
                                                            <#if responses[respKey].content??>
                                                                <#assign josnRespKey = responses[respKey].content['application/json'].schema.ref?substring(21)>
                                                                <#assign respProperties = components.schemas[josnRespKey].properties>
                                                                <#assign resRequired=components.schemas[josnRespKey].required![""]>
                                                                <#list respProperties?keys as pro>
                                                                    <tr>
                                                                        <td >${pro}</td>
                                                                        <#if respProperties[pro].type??>
                                                                            <td align="center">${respProperties[pro].type?cap_first}</td>
                                                                        <#else>
                                                                            <#assign schemasKey=schemasKey+pro+','>
                                                                            <td align="center">Object</td>
                                                                        </#if>

                                                                        <td align="center"></td>
                                                                        <#if respProperties[pro].type??>
                                                                            <#list resRequired! as req>
                                                                                <#if req==pro>
                                                                                    <td align="center">true</td>
                                                                                </#if>
                                                                            </#list>
                                                                        <#else>
                                                                            <td align="center">true</td>
                                                                        </#if>
                                                                        <#if respProperties[pro].type??>
                                                                            <td >${respProperties[pro].description}</td>
                                                                        <#else>
                                                                            <td ></td>
                                                                        </#if>
                                                                    </tr>
                                                                </#list>
                                                            </#if>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                </#if>
                                            </#list>
                                        </#if>
                                        <#list 1..20 as j>
                                            <#list components.schemas?keys as schemas>
                                               <#if (schemasKey?replace("2",""))?index_of(schemas?replace("2","")+',') lte -1 >
                                                <#else>
                                                    <p><strong>响应对象 ${schemas?replace("2","")} 的结构</strong></p>
                                                    <#assign resProperties=components.schemas[schemas].properties>
                                                    <#assign resRequired=components.schemas[schemas].required![""]>
                                                    <#assign schemasKey=(schemasKey?replace("2",""))?replace(schemas?replace("2",""),"")?replace(",,",",")>
                                                    <div class="table-wrp">
                                                        <table border="1px" width="60%" cellspacing="0">
                                                            <thead>
                                                            <tr>
                                                                <th width="20%">属性</th>
                                                                <th width="20%">类型</th>
                                                                <th width="20%">默认值</th>
                                                                <th width="20%">必填</th>
                                                                <th width="20%">说明</th>
                                                            </tr>
                                                            </thead>
                                                            <tbody>
                                                            <#list resProperties?keys as pro>
                                                                <tr>
                                                                    <td >${pro}</td>
                                                                    <#if resProperties[pro].type??>
                                                                        <td align="center">${resProperties[pro].type?cap_first}</td>
                                                                    <#else>
                                                                        <#assign schemasKey=schemasKey+pro+','>
                                                                        <td align="center">Object</td>
                                                                    </#if>

                                                                    <td align="center"></td>
                                                                    <#if resProperties[pro].type??>
                                                                        <#list resRequired! as req>
                                                                            <#if req==pro>
                                                                                <td align="center">true</td>
                                                                            </#if>
                                                                        </#list>
                                                                    <#else>
                                                                        <td align="center">true</td>
                                                                    </#if>
                                                                    <#if resProperties[pro].type??>
                                                                        <td >${resProperties[pro].description}</td>
                                                                    <#else>
                                                                        <td ></td>
                                                                    </#if>
                                                                </tr>
                                                            </#list>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                </#if>
                                                <#assign schemasKey=schemasKey?replace(schemas+',','')>
                                            </#list>
                                            <#if schemasKey='' >
                                                <#break>
                                            </#if>
                                        </#list>

                                        <p><strong>errcode 的合法值</strong></p>
                                        <div class="table-wrp">
                                            <table border="1px" width="60%" cellspacing="0">
                                                <thead>
                                                <tr>
                                                    <th width="30%">值</th>
                                                    <th width="70%">说明</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <#assign responses = bodyData.responses>
                                                <#list responses?keys as respKey>
                                                    <#if respKey!='200'>
                                                        <tr>
                                                            <td width="30%" align="center">${respKey}</td>
                                                            <td width="70%" align="center">${responses[respKey].description}</td>
                                                        </tr>
                                                    </#if>
                                                </#list>

                                                </tbody>
                                            </table>
                                        </div>
                                        <#-- <#if message.reqMsgExample??>
                                         <h3 id="请求示例"><a
                                                     href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/express/by-business/logistics.addOrder.html#%E8%AF%B7%E6%B1%82%E7%A4%BA%E4%BE%8B"
                                                     aria-hidden="true" class="header-anchor"></a> 请求示例</h3>
                                         <div class="language-json extra-class">
                                             <pre class="language-json"><code>${message.reqMsgExample}</code></pre>
                                         </div>
                                         </#if>
                                         <#if message.resMsgExample??>
                                             <h3 id="返回示例"><a
                                                         href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/express/by-business/logistics.addOrder.html#%E8%BF%94%E5%9B%9E%E7%A4%BA%E4%BE%8B"
                                                         aria-hidden="true" class="header-anchor"></a> 返回示例</h3>
                                             <div class="language-json extra-class">
                                                 <pre class="language-json"><code>${message.resMsgExample}</code></pre>
                                             </div>
                                         </#if>-->
                                    </div>
                                </div>

                            </div>
                        </main>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


</body>
</html>
